package xu.jiang.report.bean;


/**
 * @author jiangxu
 */
public class KeyValue<K,V> {
    private  K key;
    private  V value;



//    public KeyValue(K key, V value) {
//        this.key = key;
//        this.value = value;
//    }


    public static <K,V> KeyValue<K,V> as(K k,V v){
        KeyValue<K,V> kv = new KeyValue<>();
        kv.setKey(k);
        kv.setValue(v);
        return kv;
    }

    public void setKey(K key) {
        this.key = key;
    }

    public void setValue(V value) {
        this.value = value;
    }

    public K getKey() {
        return key;
    }

    public V getValue() {
        return value;
    }
}
